From 6b8d68c512af483361d9724006f226580cf4b65a Mon Sep 17 00:00:00 2001 From: robertlipe Date: Thu, 13 Jun 2013 04:45:48 +0000 Subject: [PATCH] Add (yet unused) addUSec shim to datetime so we can begin migrating our explicit microsec use. --- gpsbabel/src/core/datetime.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gpsbabel/src/core/datetime.h b/gpsbabel/src/core/datetime.h index b7f8e1edf..0270ba819 100644 --- a/gpsbabel/src/core/datetime.h +++ b/gpsbabel/src/core/datetime.h @@ -79,6 +79,13 @@ public: return &t_; } + // Before Qt, GPSBabel had a 'microseconds' which is excessive and + // not really supported in QDateTime. Milliseconds is fine, but we + // provide these shims for code that used usecs. + void addUSecs(qint64 usecs) const { + this->addMSecs(usecs / 1000); + } + // Integer form: YYMMDD int ymd() const { QDate date(this->date()); -- 2.30.2